<?php

$secure_content = ob_get_contents();
ob_end_clean();

if ($env->getSession('auth_'.$params['group'])) {
    print $secure_content;
} else { 
?>
    <form action="?" class="securedform" method="post">
            <input type="hidden" name="doc_id" value="<?php echo $GLOBALS['doc_id'] ?>"/>
            <label class="left">Benutzername:</label>
            <input type="text" size="30" name="user" value=""/><br/>
            <label class="left">Passwort:</label>
            <input type="password" size="30" name="password" value=""/><br/>
            <input class="right" type="submit" value="Anmelden"/>
    </form>
<?php
}

?>